package com.wyf.service;

import com.wyf.dao.AccountDao;
import com.wyf.po.Account;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AccountService {

    @Resource
    private AccountDao accountDao;

    public Account queryAccount(Integer accountId) {
        return accountDao.queryAccount(accountId);
    }

    public int deleteAccount(Integer accountId) {
        return accountDao.deleteAccount(accountId);
    }

    public int addAccount(Account account) {
        return accountDao.addAccount(account);
    }

    public int updateAccount(Account account) {
        return accountDao.updateAccount(account);
    }
}
